Printing device and control method for printing device

ABSTRACT

A recording device includes a recording unit that performs a recording operation, a first storage unit that stores a first template associated with a recording form, a second storage unit that store a second template corresponding to the first template, and a recording control unit that takes the second template corresponding to the designated first template from the second storage unit and gets the recording unit to perform the recording operation by using the second template when a recording instruction containing data designating the first template is input.

The disclosure of Japanese Patent Application Nos. 2012-189077 filed onAug. 29, 2012, and 2012-189079 filed on Aug. 29, 2012, includingspecification, drawings and claims is incorporated herein by referencein its entirety.

BACKGROUND

1. Technical Field

The present disclosure relates to a recording device and a controlmethod of the recording device.

2. Related Art

Heretofore, there is known a system including a recording device whichperforms recording using templates previously prepared (e.g., seeJP-A-2012-048415). Such a recording device performs the recording of arecording material by disposing data inputted from a control-sidecomputer or the like according to the templates stored therein.

In the recording device of the related art, it is conceivable to improveoutput representation of records, such as a label, by changing thetemplates. In this instance, since it is necessary that the control-sidecomputer or the like outputs the data suitable for the templates used bythe recording device, changing the template is needed to change softwareof the control-side computer or the like. However, since there are manycases where software is not easily changed, for example, a case wherethe computer or the like controlling the recording device constitutes acomplicated business system, for example, account processing, it isdifficult to improve the output representation of the records.

SUMMARY

An advantage of some aspects of the disclosure is to provide a recordingdevice capable of easily changing a recording form and a control methodof the recording device.

(1) According an aspect of the disclosure, a recording device includes arecording unit that performs a recording operation, a first storage unitthat stores a first template associated with a recording form, a secondstorage unit that store a second template corresponding to the firsttemplate, and a recording control unit that takes the second templatecorresponding to the designated first template from the second storageunit and gets the recording unit to perform the recording operation byusing the second template when a recording instruction containing datadesignating the first template is input.

According to the configuration of (1), the recording is performed usingthe second template corresponding to the designated first template ifrecording instruction designating the first template is input.Accordingly, since a record is recorded in a different recording formwithout changing the recording instruction inputted to a recordingdevice, it is possible to easily change the recording form of therecord.

(2) In the recording device of (1), the first template designates arecording form of data of a recording element, and the second templateis made by changing data of a recording element in the first template orby adding data of the recording element to the first template.

According to the configuration of (2), the recording is performed usingthe second template corresponding to the designated first template ifrecording instruction designating the first template is input.Accordingly, since a record is recorded in a different recording formwithout changing the recording instruction inputted to a recordingdevice, it is possible to easily change the recording form of therecord.

(3) In the recording device of (2), when the recording instructioncontaining the data designating the first template is input and thesecond template corresponding to the designated first template is notstored in the second storage unit, the recording control unit takes thefirst template and gets the recording unit to perform the recordingoperation by using the first template.

According to the configuration of (3), since the recording is performedeven though there is no second template corresponding to the designatedfirst template, the second template corresponding to all the firsttemplates should not be prepared. For this reason, the recording formcan be changed so that the second template is used for only a portion ofthe first template. Therefore, limitation on the change of the printingform is alleviated, and thus the printing form can be easily changed.

(4) In the recording device of (2) or (3), wherein the second templatecontains data designating the recording form of the data of therecording element which is newly added to the first template.

According to the configuration of (4), as the template used for therecording is substituted by the template to which the data designatingthe recording form is newly added, it is possible to further widen arange of output representation, without changing the recordinginstruction to be input.

(5) In the recording device of (4), wherein the second template containsdata designating a recording color of the recording element, as the datadesignating the recording form of the data of the recording element.

According to the configuration of (5), as the template is substituted bythe template to which the data designating the recording color is newlyadded, it is possible to newly designate the recording color withoutchanging the recording instruction to be input, thereby further wideningthe range of the output representation.

(6) In the recording device of (4), the second template contains datadesignating at least one of a position and a size of the recordingelement in a recording region of a recording medium, as the datadesignating the recording form of the data of the recording element.

According to the configuration of (6), it is possible to flexibly changethe position or the size of the recording element without changing therecording instruction to be input, thereby further widening the range ofthe output representation.

(7) In the recording device of (1), the first template is datadesignating a recording form of a page unit, and the second template isformed by adding data newly designating the recording form of the wholepage to the first template.

According to the configuration of (7), the recording device performs therecording using the second template corresponding to the designatedfirst template if recording instruction designating the first templateis input. Accordingly, since a record is recorded in a differentrecording form without changing the recording instruction inputted tothe recording device, it is possible to easily change the recording formof the record.

(8) In the recording device of (7), when the recording instructioncontaining the data designating the first template is input and thesecond template corresponding to the designated first template is notstored in the second storage unit, the recording control unit takes thefirst template and gets the recording unit to perform the recordingoperation by using the first template.

According to the configuration of (8), since the recording is performedeven though there is no second template corresponding to the designatedfirst template, the second template corresponding to all the firsttemplates should not be prepared. For this reason, the recording formcan be changed so that the second template is used for only a portion ofthe first template. Therefore, limitation on the change of the printingform is alleviated, and thus the printing form can be easily changed.

(9) In the recording device of (7) or (8), the second template containsdata designating a background color of the page, as the data newlydesignating the recording form of the whole page.

According to the configuration of (9), as the template used whenrecording is substituted by the template to which the data designatingthe background image of the page of the record is newly added, it ispossible to designate the background image of the record, withoutchanging the recording instruction to be input to the recording device,thereby further widening the range of output representation.

(10) In the recording device of (7), the second template contains datadesignating a background image for a background of the page, as the datanewly designating the recording form of the whole page.

According to the configuration of (10), as the template used for therecording is substituted by the template to which the data designatingthe background color is newly added, it is possible to designate thebackground color of the record, without changing the recordinginstruction to be input to the recording device, thereby furtherwidening the range of output representation.

(11) In the recording device of (7), the second template contains datadesignating a foreground color in the page, as the data newlydesignating the recording form of the whole page.

According to the configuration of (11), as the template used whenrecording is substituted by the template to which the data designatingthe background image of the page of the record is newly added, it ispossible to designate the background image of the record, withoutchanging the recording instruction to be input to the recording device,thereby further widening the range of output representation.

(12) According to another aspect of the disclosure, a control method fora recording device including a recording unit that performs a recordingoperation a first storage unit that stores a first template associatedwith a recording form, a second storage unit that store a secondtemplate corresponding to the first template, and a recording controlunit that gets the recording unit to perform the recording operation,includes taking the second template corresponding to the designatedfirst template to get the recording unit to perform the recordingoperation by using the second template when a recording instructioncontaining data designating the first template is input.

According to the configuration of (12), the recording is performed usingthe second template corresponding to the designated first template ifrecording instruction designating the first template is input to therecording device. Accordingly, since the recording form of the wholepage of the record is recorded in a different recording form, withoutchanging the recording instruction inputted to the recording device, itis possible to easily change the recording form of the record.

(13) In the control method of (12), the first template designates arecording form of data of a recording element, and the second templateis made by changing data of a recording element in the first template orby adding data of the recording element to the first template.

According to the configuration of (13), the recording is performed usingthe second template corresponding to the designated first template ifrecording instruction designating the first template is input to therecording device. Accordingly, since the recording form of the wholepage of the record is recorded in a different recording form, withoutchanging the recording instruction inputted to the recording device, itis possible to easily change the recording form of the record.

(14) In the control method of (12), the first template is datadesignating a recording form of a page unit, and the second template isformed by adding data newly designating the recording form of the wholepage to the first template.

According to the configuration of (14), the recording is performed usingthe second template corresponding to the designated first template ifrecording instruction designating the first template is input to therecording device. Accordingly, since the recording form of the wholepage of the record is recorded in a different recording form, withoutchanging the recording instruction inputted to the recording device, itis possible to easily change the recording form of the record.

(15) The control method of (12) further includes, when the recordinginstruction containing the data designating the first template is inputand the second template corresponding to the designated first templateis not stored in the second storage unit, taking the first template andgetting the recording unit to perform the recording operation by usingthe first template.

(16) According to another aspect of the disclosure, a recording deviceincludes a recording unit that performs a recording operation, a storageunit that stores a first template using a first command system and asecond template using a second command system and corresponding to thefirst template, a recording control unit that takes the second templatecorresponding to the designated first template from the storage unit andgets the recording unit to perform the recording operation by using thesecond template when a recording instruction containing data designatingthe first template is input.

(17) In the recording device of (16), when the recording instructioncontaining the data designating the template using the first commandsystem is input and the template using the second command systemcorresponding to the designated template using the first command systemis not stored in the storage unit, the recording control unit takes thetemplate using the first command system and gets the recording unit toperform the recording operation.

According to the configurations of (16) and (17), the recording isperformed using the second template corresponding to the designatedfirst template if recording instruction designating the first templateis input to the recording device. Accordingly, since the recording formof the whole page of the record is recorded in a different recordingform, without changing the recording instruction inputted to therecording device, it is possible to easily change the recording form ofthe record.

With the configuration of an embodiment of the disclosure, even thoughthe recording instruction inputted to the recording device is notchanged, it is possible to perform the recording using the differentrecording form, thereby easily changing the recording form of therecord.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a functional block diagram of a printing system according to afirst exemplary embodiment.

FIGS. 2A and 2B are explanatory diagrams illustrating one example of atemplate for use in the printing system.

FIG. 3 is an explanatory diagram illustrating an operation of a templateconversion process.

FIG. 4 is an explanatory diagram illustrating a sequence of the templateconversion process.

FIG. 5 is an explanatory diagram illustrating one example of first andsecond templates.

FIG. 6 is an explanatory diagram illustrating an operation of a printingprocess.

FIG. 7 is an explanatory diagram illustrating a sequence of the printingprocess.

FIG. 8 is an explanatory diagram illustrating one example of first andsecond templates.

FIG. 9 is an explanatory diagram illustrating one example of first andsecond templates.

FIG. 10 is an explanatory diagram illustrating one example of first andsecond templates.

FIGS. 11A and 11B are explanatory diagrams illustrating one example offirst and second templates.

FIGS. 12A to 12C are explanatory diagrams of the printing process of aprinter.

FIG. 13 is an explanatory diagram illustrating an operation of atemplate conversion process in a second exemplary embodiment.

FIG. 14 is an explanatory diagram illustrating a sequence of thetemplate conversion process.

FIGS. 15A and 15B are explanatory diagrams illustrating one example offirst and second templates.

FIG. 16 is an explanatory diagram illustrating an operation of aprinting process.

FIG. 17 is an explanatory diagram illustrating a sequence of theprinting process.

FIGS. 18A and 18B are explanatory diagrams illustrating one example offirst and second templates.

FIGS. 19A and 19B are explanatory diagrams illustrating one example offirst and second templates.

DESCRIPTION OF EXEMPLARY EMBODIMENTS

Hereinafter, an embodiment of the present disclosure will be describedwith reference to the accompanying drawings.

First Exemplary Embodiment

FIG. 1 is a functional block diagram illustrating the configuration of aprinting system 1 according to the embodiment.

As illustrated in FIG. 1, the printing system 1 (recording system) is ssystem for printing (recording) a label, for example, and includes ahost computer 2 outputting a printing command as printing instruction(recording instruction), a printer 3 (recording device), and a templateterminal 5, which are connected to each other via a network 4. FIG. 1shows a printer with no printing system 1, for the sake of explanation.Further, the printing system 1 may include a POS system.

The host computer 2 is a computer composed of a CPU executing a program,an ROM storing a basic control program executed by the CPU or dataprocessed by the CPU, an RAM temporarily storing the program executed bythe CPU or the data processed by the CPU, and a non-volatile memoryelement storing the program or data. The host computer 2 has anapplication program 21 and a device driver 23, and outputs the printingcommand to put the printer 6 to print. In this embodiment, a descriptionis given of an example in which the printing system 1 prints charactersor images on a printing region of a label paper sheet, which is arecording medium, with an adhesive material on its rear surface to printa cut sheet of a label having a desired cut size.

The application program 21 has a function of designating the templatepreviously stored in the printer 6 and instructing the printingexecution. As described later, the printing system 1 is previously setwith a plurality of templates to be used for printing, and, for example,the templates are stored in the printer 6. The application program 21designates the template to be used for printing. The device driver 23 isa program for controlling the printer 6, and is prepared correspondingto hardware specifications and software specifications of the printer 6.If the application program 21 instructs the printing execution, thedevice driver 23 prepares and outputs printing command which is made ofcommands of a command scheme (hereinafter referred to as a first commandscheme) interpretable by the printer 6. The device driver 23 creates acommand including information about the designated template to output itto the printer 6, if the template is designated by the applicationprogram 21.

The printing system 1 actually does not include the printer 6. Theprinting command sent to the printer 6 from the host computer 2 isreceived and executed by the printer 3. The printer 3 emulates thefunction of the printer 6, as described later. The printer 3 interpretsthe printing command written in the first command scheme, and prints thelabel in a printing format different from the case where the printer 6prints. That is, the printing system 1 excludes the printer 6 in thesystem combined with the host computer 2 and the printer 6, and isalternatively connected to the printer 3. In the printing system 1,there is no need to change the application program 21 an the devicedriver 23 of the host computer 2 from the state in which the printer 6is used. In this embodiment, a description is given of an example inwhich the printer 6 performing monochrome printing is substituted by theprinter 3 capable of performing color printing.

The network 4 is a network capable of connecting the host computer 2,the printer 3, and the template terminal 5 in a communicable manner, andis composed of, for example, a cable LAN or a wireless LAN specified inEthernet (trademark) standards.

The host computer 2 and the printer 3 may be connected to each other ina communicable manner via an interface specified in USE or RS-232Cstandards. In this instance, one-to-one communication between the hostcomputer 2 and the printer 3 is performed in the printing process whichwill be described later. In the case where the printer 3 is connected tothe host computer 2, instead of the printer 6, it is not necessary tochange information designating a printer of a communication destinationin the host computer 2, if a network address of the printer 3 is set bythe same address as that of the network address of the printer 6 beforethe substitution. Further, in the case where the printer 6 is connectedto the host computer 2 via the USB or the RS-232C, it is not necessaryto change the information designating the printer of the communicationdestination in the host computer 2, if the printer 3 is connected to thehost computer 2 by the same connection method. In this way, it ispossible to substitute the printer by the printer 3, without changingthe host computer 2 at all.

The printer 3 includes a printing execution unit (recording unit) 39having hardware executing the printing, such as a printing head or atransfer roller, and a controller controlling the hardware. The printingexecution unit 39 prints the label paper sheet to output the label.

The printer 3 further includes a control unit 30 controlling each partof the printer 3. The control unit 30 includes a template conversionprocessing portion 31 and a printing control portion (recording controlunit) 32. The template conversion processing portion 31 executes aconversion process of the template according to a demand of the templateterminal 5. When the printing command including the command of the firstcommand scheme is sent from the host computer 2, the printing controlportion (recording control unit) 32 interpreting the command of theprinting command to put the printing execution unit to execute theprinting (recording).

The printer 3 further includes a storage unit 33 (storage unit) storingthe program or data in a nonvolatile manner. A storage region of thestorage unit 33 is provided with a first template storage portion 34(first storage unit) and a second template storage portion 35 (secondstorage unit) which are able to store the template, and a basic templatestorage portion 36. Further, the storage unit 33 is stored with a labelprinting program 37. The label printing program is a program operable ina manner similar to the program which is executed by the controller (notillustrated) of the printer 6, and is used so that the printing controlportion 32 emulates the operation of the printer 6.

The template is a set of data designating a printing form (recordingform) of the printing medium to be printed by the printer 3 or theprinter 6. In this embodiment, a description is given of the case wherethe label paper sheet is used as the printing medium. The label papersheet is a paper sheet with labels, which are cut in a desired size andare applied with an adhesive material, arranged on a release sheet longin a horizontal direction, and is accommodated in the printers 3 and 6while being wound in a roll shape. The printers 3 and 6 print thecharacters or image of one page on one sheet of label. The printing formmay include attributes, for example, a size of label, an internalposition of label, the number of characters per one row, the number oflines, decoration of characters, a font size, a font style, a size ofimage, a position of image, and top and bottom or left and right margin.The template is a set of commands each designating these attributes.That is, the template includes data designating the printing form of thedata of recording elements (printing element) which are characters orimages to be recorded (printed) on the label.

FIGS. 2A and 2B are explanatory diagrams illustrating one example of thetemplate for use in the printing system, in which FIG. 2A shows anexample of information included in a template T1, and FIG. 2B shows anexample of a printing image G1 based on the template T1. The printingimage based on the template schematically shows the printing form in thecase where the label paper sheet is printed according to the template.

As illustrated in FIG. 2A, the template T1 includes a value of “LabelWidth” which is data designating a width of the label, and coordinatesof “Home Position” which is the data designating a reference position.Further, the template T1 includes a plurality of frames (frames a1 toa4) and data designating the printing form of character strings(character strings b1 to b3), as a printing element to be printed on thelabel. The frames a1 to a4 are regions in which the characters or imagecan be disposed, and are defined by the position, shape and size (widthsW1 to W4 and heights H1 to H4) of the frame, as illustrated in FIG. 2A.The printing position of the frames a1 to a4 are designated by positioncoordinates (X1 to X4 and Y1 to Y4), the origin point of which is thereference position of the label, in the printing region (recordingregion) of the label. Further, the frames a1 to a4 are rectangular inthe example of FIG. 2A. The rectangular frames a1 to a4 are prescribedin advance so that its width direction and height direction are printedparallel with a width direction and height direction of the label. Theposition coordinates (X1 to X4 and Y1 to Y4) indicate positions ofcorners of an upper left side of the frames a1 to a4 in the printingimage G1, respectively. What is disposed and printed on the frames canbe designated by a separate command. Further, an empty frame may existin the frames defined by the template T1, and, in this instance, nothingis printed in the region of the frame.

In the example of FIGS. 2A and 2B, the images are disposed in the framesa1 to a4. Since the frames a1 to a4 is rectangular, the rectangularimages are printed in the regions of frames a1 to a4 in the printingimage G1 of FIG. 2B.

The template T1 may include data of character strings b1 to b3 to beprinted on the label, and data designating the printing form of eachcharacter string. The example of FIG. 2A includes data of characters“◯◯◯◯”, “ΔΔΔΔ”, and “□□□□” included in the character strings for thecharacter strings b1 to b3, data designating printing positions(position coordinates X5 to X7 and Y5 to Y7) as the printing form of thecharacter strings b1 to b3, and data designating font sizes fs1 to fs3.

Further, the contents of the template illustrated in FIGS. 2A and 2B canbe dynamically changed. That is, it is possible to insert and printcharacters or images in the frames contained in the existing template,or to add and print other characters or images at a position which isnot defined by the frame or the character string in the template.

The first template storage portion 34 of the printer 3 is stored withthe first template composed of the commands of the first command scheme.

The first template is the template illustrated in FIGS. 2A and 2B whichis described using the commands of the first command scheme. The firsttemplate is a template for use in the printing of the printer 6. Forexample, when the printer 6 is substituted by the printer 3, alltemplates used by the printer 6 is copied in the first template storageportion 34.

The second template storage portion 35 is stored with the secondtemplate described by the command which is defined by the second commandscheme different from the first command scheme. That is, the secondtemplate is the template illustrated in FIGS. 2A and 2B which isdescribed by the command of the second command scheme. The secondcommand scheme may contain a command common to or uncommon to the firstcommand scheme. Further, the second command scheme contains a commandregarding to an attribute which is not defined in the first commandscheme, as the command designating the printing form.

In this embodiment, the first command scheme is composed of commands formonochrome printing, and a printing color (recording color) of theprinting elements is limited to a black or gray scale. Whereas, thesecond command scheme contains a command designating the printing colorof the printing elements to correspond to color printing of 16, 256,65,536, or 16,770,000 colors. The printing color of the printingelements can be designated using these commands, except for the black orgray scale.

The second template stored in the second template storage portion 35corresponds to any one of the templates stored in the first templatestorage portion 34, and is composed to print the label in a printingform of which at least a portion is different from the first template.Specifically, the second template is a template of which at least aportion of the data designating the printing elements of the firsttemplate and the attribute of the printing element is changed, added, ordeleted.

In this embodiment, the first template and the second template aredenoted by a name, respectively, and the second template is denoted bythe same names as those of the first template. That is, the firsttemplate storage portion 34 and the second template storage portion 35are stored with the template of the same name. Herein, for the whole ofthe first template stored in the first template storage portion 34, thesecond template denoted by the same name is not necessarily stored inthe second template storage portion 35. For example, for any one of thefirst templates stored in the first template storage portion 34, it isallowed that the second template denoted by the same name is not stored.

The basic template storage portion 36 is stored with the basic templatewhich is used by the printer 3 as a template of default. The hostcomputer 2 outputs printing command which does not contain theinformation designating the template. If the printing control portion 32receives the printing command, the printing control portion 32 arrangesthe characters or images according to the basic template stored in thebasic template storage unit 36.

The template terminal 5 is composed of, for example, a personal computeras a terminal device for editing the template designating the printingform of the label.

FIG. 3 is an explanatory diagram illustrating the operation of thetemplate conversion process, and schematically shows the flow of thedata in the printing system 1. Further, FIG. 4 is an explanatory diagramillustrating a sequence of the template conversion process, in whichFIG. 4A shows the operation of the template terminal 5, and FIG. 4Bshows the operation of the template conversion processing portion 31 ofthe printer 3. The template conversion process will now be describedwith reference to FIGS. 3 and 4.

In the template conversion process, the template terminal 5 and theprinter 3 transmit and receive the data to and from each other. Thetemplate conversion processing portion 31 executes, for example, thefunction of a web server, and the template terminal 5 executes, forexample, the function of a web client. In this instance, the templateconversion processing portion 31 transmits the data of a web page forthe template process in response to the access of the template terminal5, and the template terminal 5 transmits a request to the printer 3based on the web page. In this instance, the function of the templateterminal 5 may be added to the printer 5.

By manipulation of a user or operation of a preset program, the templateterminal 5 transmits a template demand command for demandingtransmittance of the first template to the template conversionprocessing portion 31 of the printer 3 (step S11). The template terminal5 may demand transmittance of any one of the first templates stored inthe first template storage portion 34, or demand transmittance of allthe first templates. The template conversion processing portion 31 ofthe printer 3 receives the template demand command transmitted from thetemplate terminal 5 (step S21). The template conversion processingportion 31 reads the first template demanded for the transmittance inthe template demand command from the first template storage portion 34(step S22), and transmits it to the template terminal 5 (step S23). Asillustrated in FIG. 3, the first template denoted by a name “Fragile” istransmitted to the template terminal 5 by way of example herein.

The template terminal 5 receives the first template transmitted from theprinter 3 (step S12). As necessary, the template terminal 5 exchangesthe data of the printing element (data of characters or data of images)by data of other printing element, or adds the data of the printingelement. In addition, the attribute which is not defined in the firsttemplate is additionally set (step S13). For example, the templateterminal 5 additionally sets the attribute, for example, whether or notcolor printing is performed for each data of the printing elements inthe first template.

If the set content of the attribute to be added to the first templatebeing processed is determined (step S14), the template terminal 5transmits a template preservation command for making the printer 3 topreserve a new template containing the attribute (step S15). In stepS15, the template terminal 5 transmits the data (containing the command)of the attribute to be newly added to the command constituting the firsttemplate to the printer 3 together with the template conversion command.Further, in step S15, the template terminal 5 may transmit it togetherwith the processed first template which is subjected to the process ofsetting the attribute. In the case of editing or exchanging the data ofthe printing element, the template terminal 5 transmits it together withthe data of the processed printing element.

The template conversion processing portion 31 of the printer 3 receivesthe template conversion command transmitted from the template terminal 5(step S24). The template conversion processing portion 31 creates andpreserves the second template by the command defined by the secondcommand scheme, based on the data transmitted together with templatepreservation command from the template terminal 5 (step S25).Specifically, the template conversion processing portion 31 creates thesecond template which describes the printing form using the command ofthe second command scheme, the printing form being reflected by theattribute added or changed by the process of the template terminal 5 toor changed from the printing form of the first template which isprocessed by the template terminal 5. Further, in the case where thedata of the printing element is transmitted together with thepreservation demand for the template, the template conversion processingportion 31 creates the second template containing the data of theseprinting elements, and the data designating the printing form of thedata. The template conversion processing portion 31 denotes the createdsecond template by the same name as the first template processed by thetemplate terminal 5, and stores it in the second template storageportion 35. Accordingly, it becomes clear that the second templatecreated by the template conversion processing portion 31 in step S25 isthe template to be used instead of the first template processed by thetemplate terminal 5.

Now, the first and second templates in a corresponding relation and anexample of printing images based on these templates will be described.

FIG. 5 is an explanatory diagram illustrating one example of the firsttemplate T2 and the second template T3 in the corresponding relation,and shows printing images G2 and G3 based on the first template T2 andthe second template T3.

The printing image G2 based on the first template T2 denoted by the nameof “Fragile” has a printing element which is a rectangular frame a5, acharacter string b4 of “Fragile” disposed in the frame a5, and aprinting element which is a character string b5 of “↑ UP ↑”. The firsttemplate T2 contains the data of the frame a5 and the character stringsb4 and b5, and the data designating the printing form. In this instance,the first template T2 is composed of commands of the first commandscheme which designate the printing form for the monochrome printer 6,and does not contain the data designating the printing color of theframe a5 and the character strings b4 and b5.

The second template T3 denoted by the same name of “Fragile” as thefirst template T2 exchanges the character string b4 of the firsttemplate T2 by an image a6 attracting attention to a fragile object.Further, the second template T3 is added by the data designating theprinting color of the image a6. The printing color may be, for example,a red color suitable for the caution. The printing image G3 based on thesecond template T3 is formed so that the color image a6 is printed,while the character “Fragile” is omitted as compared with the printingimage G2.

As the template terminal 5 converts the first template used by theprinter 6 into the second template described by the command of thesecond command scheme which can be executed by the printer 3, and thenpreserves it in the printer 3, the printer 3 can employ the function ofthe color printing or the like, which cannot be executed by the printer6.

FIG. 6 is an explanatory diagram illustrating the operation of theprinting process, and schematically shows the flow of the data in theprinting system 1. Further, FIG. 7 is an explanatory diagramillustrating a sequence of the printing process, in which FIG. 7A showsthe operation of the host computer 2, and FIG. 7B shows the operation ofthe printing control portion 32 of the printer 3. The printing processwill now be described with reference to FIGS. 6 and 7.

In the printing process, the host computer 2 and the printer 3 transmitand receive the data to and from each other. In a case where the hostcomputer 2 and the printer 3 are connected one-on-one via acommunication line, such as USB or RS-232C, the printing process isexecuted via the communication line.

As the host computer 2 executes the application program 21 by themanipulation of the user or the operation of the preset program, theprinting process starts. If the application program 21 creates theprinting data of the label and instructs the printing execution, theprinting command contained the data designating the first template basedon the first command scheme is created and transmitted to the printer 3by the device driver 23 (step S31). In this instance, if the data of theprinting element is added to the first template, the data of theprinting element to be added is contained in the printing command.

The printing control portion 32 of the printer 3 receives the printingcommand transmitted from the host computer 2 (step S41). The printingcontrol portion 32 refers to the data of the second template stored inthe second template storage portion 35 (step S42), and verifies whetheror not the second template storage portion 35 is stored with the secondtemplate corresponding to the first template designated by the printingcommand (step S43). That is, the printing control portion 32 searcheswhether the second template having the same name as the templatecontained in the printing command is in the first storage portion 35.

If the concerned second template is not in the second template storageportion 35 (NO in step S43), the printing control portion 32 reads thedesignated first template from the first template storage portion 34(step S44), and proceeds to step S46. If there is no concerned firsttemplate in the first template storage portion 34, the printing controlportion 32 may read the basic template from the basic template storageportion 36. Further, if it is verified that the concerned secondtemplate is in the second template storage portion 35 (YES in step S43),the printing control portion 32 reads the second template from thesecond template storage portion 34 (step S45), and proceeds to step S46.

In step S46, the printing control portion 32 creates the printing dataaccording to the read template. For example, if the first templatedesignated in the printing command is denoted by the name of “Fragile”,the template having the same template name “Fragile” is read from thesecond template storage portion 35, and the printing data is created. Asdescribed above, the read second template is that the data of thecharacter string b4 of “Fragile” in the first template is substituted bythe data of the color image (recording element) a5.

In steps S42 to S46, the printing control portion 32 converts thecommand of the first command scheme which is the command scheme of theprinter 6 into the command of the second command scheme which is thecommand scheme of the printer 11, and operates as an emulator forcontrolling the recording of the printer 11.

Subsequently, the printing control portion 32 controls the printingexecution unit 39 to execute the printing of the label based on theprinting form designated by the second template (step S47).

As described above, if the printing command designating the firsttemplate is input, the printer 3 performs the printing based on thesecond template corresponding to the first template. That is, at thetime of printing, the printer 3 substitutes the first templatedesignated in the printing command for the printer 3 by the secondtemplate, and then performs the printing. Since the second template is atemplate of which the first template T2 is subjected to at least one ofchange, addition, and deletion, the printer 3 can perform the recordingin a printing form different from the printing form based on the firsttemplate. For this reason, as the printer 6 is substituted by theprinter 3, the printing form of the label can be easily changed usingthe function which is not provided in the printer 6, without changingthe printing command to be output from the host computer 2.

If there is no second template corresponding to the first templatedesignated by the host computer 2, the printer takes the designatedfirst template for the recording, thereby implementing the printing evenwith no the second template corresponding to the designated firsttemplate. Therefore, it does not need to prepare the second templatecorresponding to all the first templates. For this reason, the recordingform can be changed so that the second template is used for only aportion of the first template. Therefore, limitation on the change ofthe printing form is alleviated, and thus the printing form can beeasily changed.

In addition, an example in which the second template T3 is containedwith the data designating the printing color as the data designating theprinting form of the data of the image a6 is illustrated. The printingsystem 1 substitutes the template used in the printing by the secondtemplate to which the data designating the printing color is newlyadded. Thereby, it is possible to designate the printing color withoutchanging the printing instruction outputted from the host computer 2.Accordingly, it is possible to widen a range of the outputrepresentation, without changing the software configuration of the hostcomputer 2. Like this embodiment, for example, as the second template isused instead of the first template corresponding to the monochromeprinter 6, it is possible to widen the range of the outputrepresentation by colorization, without changing the printing command tobe input.

The second template contains the data designating at least one of theposition and size of the data, such as the frame a5, the image a6, andthe character string b5, in the printing region having the label whichis the printing medium. For this reason, since the arrangement and sizeof the frame a5, the image a6, and the character string b5 is flexiblychanged by substituting the template used for the printing by the secondtemplate, the range of the output representation can be further widened.

Although one example of the first and second templates has beendescribed with reference to FIG. 5 in the above description, the presentdisclosure is not limited thereto. Another example of the firsttemplates and an example of a second template corresponding to eachfirst template will be described with reference to FIGS. 8 to 12.

FIG. 8 illustrates printing images G2 and G4 each corresponding to afirst template T2 and a second template T4 which corresponds to thefirst template T2. The first template T2 and the printing image G2 inthis example are identical to those which have been described withreference to FIG. 5.

The second template T4 is that the printing element of the firsttemplate T2 is added by data of an image a7 attracting attention to afragile object, as a printing element, and also is added by the datadesignating the printing form (printing color and printing position) ofthe image a7. The position of the image a7 is designated by a positionwhich is not overlapped with the character string b4 or the characterstring b5.

For this reason, the printing image G4 based on the second template T4is disposed with the color image a7 which is not provided in theprinting image G2.

The second template T4 illustrated in FIG. 8 contains the data of theimage a7 and the data designating the printing form which are newlyadded to the first template T2. For this reason, as the first templateT2 designated in the printing command outputted from the host computer 2is substituted by the second template T4, the image is added to widenthe range of the output representation.

FIG. 9 illustrates the printing images G2 and G5 each corresponding tothe first template T2 and a second template T5 which corresponds to thefirst template T2. The first template T2 and the printing image G2 inthis example are identical to those which have been described withreference to FIG. 5.

The second template T5 is that the first template T2 is added by datadesignating the printing color of the character string b4. For thisreason, the printing image G5 printed based on the second template T5 isthat the character string b4 of the monochrome printing image G2 iscolored by the designated color, such as red or blue.

FIG. 10 illustrates the printing images G6 and G7 each corresponding toa first template T6 and a second template T7 which corresponds to thefirst template T6.

The first template T6 is that the first template T2 described withreference to FIG. 5 is added by data (data of printing element) of animage a8 attracting attention to a fragile object, and data designatingthe printing form. The first template T6 is not contained with the datadesignating the printing color.

Further, the second template T7 corresponding to the first template T6contains data designating the printing color of the data of the imagea8.

The printing image G7 based on the second template T7 is that themonochrome image a8 in the printing image G6 based on the first templateT6 is colorized to form an image a9.

As illustrated in the examples of FIGS. 9 and 10, the second templatesT5 and T7 are that a portion of the data of the printing element in thefirst templates T2 and T6 are newly added by data designating theprinting form which is not provided in the first templates T2 and T6.According to these examples, it is possible to further widen the rangeof the output representation by using the second templates T5 and T7,instead of the first templates T2 and T6 designated by the printingcommand outputted from the host computer 2 to the printer 6.

In FIGS. 7 to 10, the second template is that the corresponding firsttemplate is subjected to change, addition, and deletion of the datadesignating the printing form of the printing element, but the presentdisclosure is not limited to these examples.

FIGS. 11A and 11B are explanatory diagrams illustrating printing imagesG8 and G9 each corresponding to a first template T8 (FIG. 11A) and asecond template T9 (FIG. 11B) corresponding to the first template.

The first template T8 of FIG. 11A contains an image 40, a character 41,and a frame 42 as the printing elements to be printed on the label. Thedata of the first template T8 contains image data of the image 40, datadesignating a size and position of the image 40, and a character code, afont, a size, and a position of the character 41. Further, the frame 42is provided as a frame to insert the characters. The data of the firsttemplate T8 does not contain the data, that is, character code, of thecharacter to be inserted in the frame 42, but the frame 42 contains thedata designating the font, the size and the position of the character.

If the first template is used, the host computer 2 outputs datadesignating a name of the first template, and data containing thecharacter code of the character to be inserted in the frame 42, as wellas a command of printing command. In the example of FIG. 11A, theaddress data can be inserted in the frame 42, so that the host computer2 outputs a name “Summer” of the first template T8, and the address data“123 XX Street, 12345” to be inserted in the frame 42, as well as theprinting command.

The second template T9 corresponding to the first template T8 containsan image 50, a character 51, and the frame 42 as the printing elements,as illustrated in FIG. 11B. The data of the second template T9 containsimage data of the image 50, data designating a size and position of theimage 50, and a character code, a font, a size, and a position of thecharacter 51. Further, the image 50 is the image data substituting theimage 40, and the character 51 is the data substituting the character41. If the image 50 and the character 51 is able to be disposed in therange falling within the size of the label, it is not necessary toarrange the image 40 and the character 41 in the size, the position, andthe font, and an arbitrary size, position and font can be set.

Since the printer 3 is able to perform color printing, the secondtemplate T9 contains the data designating the printing color of theimage 50, and the data designating the printing color of the character51.

In addition, the second template T9 contains the frame 52 as theprinting element. The frame 52 is a frame in which it is disposed at thesame size and position of the frame 42 of the first template T8, and acharacter can be inserted. The frame 52 which is inserted by the samenumber of characters as that of the fame 42 can be printed. Accordingly,if the host computer 2 outputs the data of the name of the firsttemplate T8 and the character to be inserted in the frame 42, theprinter 3 can print the frame 52 in which the entire characters (herein,address data) to be inserted in the frame 42 are inserted. In this way,for the frame in which the data is dynamically inserted or changed bythe data outputted from the host computer 3 together with the printingcommand, the second template 2 preferably has the frame in which atleast the same data as the first template. Furthermore, the character orimage stationarily contained in the template may be changed in the framewithout deviating from the printing region of a printing surface of thelabel. For example, if the printing image G8 has a size occupying thehalf of the label, the printing size of the printing image G9 may be setto be the almost entire surface of one sheet of the label.

Comparing the printing image G8 of the first template T8 and theprinting image G9 of the second template T9, the image a10 and the imagea12, and the character b6 and the character b7 may be largely differentfrom each other. The character c2 is not necessarily set to have thesame font or size as that of the character c1, and may be set indifferent font or size, since the same number of characters should beprinted.

The work of preparing the second template using the template terminal 5can be carried out by two methods: a method of reading the firsttemplate using the template terminal 5; and a method of preparing a newtemplate without using the first template. In the example illustrated inFIGS. 11A and 11B, the character 41 or the image 40 can be changed bythe character 51 or the image 50 which is largely different from thecharacter 41 or the image 40. In this instance, it seems that the methodof preparing the new template is easier than the former method.

In the printing system 1, by the printing command outputted from thehost computer 2, other data memorized in the printers 3 and 6 aredesignated together with the template, and the printers 3 and 6 canprint the designated data according to the template. FIGS. 12A to 12Care explanatory diagrams of the printing process.

In addition to the image data or character data of the printing elementsand the data designating a printing aspect of each printing element, thefirst template can contain a file name of the image data to be insertedin the template for the printing. The printer 6 stores, for example,data of an image a14 in FIG. 12A, as well as the first template. If thefirst template designated by the printing command outputted from thehost computer 2 contains a file name “sun” of the image a14, the data ofthe image a14 is read, and then is printed together with other printingelements of the first template.

In this way, the second template corresponding to the first template isprepared to contain the file name “sun” of the image a14. In addition,another image a15 illustrated in FIG. 12B may be denoted by the samefile name “sun” as the image a14, and then be stored in the secondtemplate storage portion 35. In this instance, characters a16 and 17 andthe image a15 of the image G10 (FIG. 12C) to be printed in practice maybe changed in characters and image different from the original firsttemplate, without changing the printing command and the data outputtedfrom the host computer 2. Further, like the above example, since thesecond template newly contains data designating printing colors of thecharacters a16 and 17 and the image a15, it is possible to easily printthe colorized label.

Further, if the data outputted from the host computer 2 does not containthe file name of the image data, but the first template contains thefile name, as illustrated in FIG. 12B, it is not necessary to denote theimage data to be newly used by the same file name. The second templatestorage portion 35 should be stored with the image data of the same filename as that contained in the second template.

Second Exemplary Embodiment

Next, a second exemplary embodiment will be described herewith.

In the second embodiment, the same reference sign is assigned to acomponent which is common to the aforementioned first embodiment.

In the first embodiment, the template terminal 5 receives the firsttemplate transmitted from the printer 3. Then, as necessary, thetemplate terminal 5 replaces the printing element data with anotherprinting element data and adds another printing element data. In thesecond embodiment, the template terminal 5 executes the processexplained in the first embodiment and performs change or addition of anattribute, which is not defined in the first template, designating theprinting form of the whole page.

FIG. 13 is an explanatory diagram illustrating the operation of thetemplate conversion process in the second exemplary embodiment, andschematically shows the flow of the data in the printing system 1.Further, FIG. 14 is an explanatory diagram illustrating a sequence ofthe template conversion process in the second exemplary embodiment, inwhich FIG. 14A shows the operation of the template terminal 5, and FIG.14B shows the operation of the template conversion processing portion 31of the printer 3. The template conversion process will now be describedwith reference to FIGS. 13 and 14.

In the template conversion process, the template terminal 5 and theprinter 3 transmit and receive the data to and from each other. Thetemplate conversion processing portion 31 executes, for example, thefunction of a web server, and the template terminal 5 executes, forexample, the function of a web client. In this instance, the templateconversion processing portion 31 transmits the data of a web page forthe template process in response to the access of the template terminal5, and the template terminal 5 transmits a request to the printer 3based on the web page. In this instance, the function of the templateterminal 5 may be added to the printer 5.

By manipulation of a user or operation of a preset program, the templateterminal 5 transmits a template demand command for demandingtransmittance of the first template to the template conversionprocessing portion 31 of the printer 3 (step S51). The template terminal5 may demand transmittance of any one of the first templates stored inthe first template storage portion 34, or demand transmittance of allthe first templates. The template conversion processing portion 31 ofthe printer 3 receives the template demand command transmitted from thetemplate terminal 5 (step S61). The template conversion processingportion 31 reads the first template demanded for the transmittance inthe template demand command from the first template storage portion 34(step S62), and transmits it to the template terminal 5 (step S63). Asillustrated in FIG. 13, the first template denoted by a name “Summer” istransmitted to the template terminal 5 by way of example herein.

The template terminal 5 receives the first template transmitted from theprinter 3 (step S52). The template terminal 5 performs change oraddition of an attribute, which is not defined in the first template,designating the printing form of the whole page (step S53). For example,the change or addition of an attribute, which is not defined in thefirst template, designating the printing form of the whole page includesdesignation of a background color of the whole page, designation of acolor background image constituting the whole page, and designation ofthe color of the printing element disposed at a foreground inside thepage. As necessary, the template terminal 5 exchanges the data of theprinting element (data of characters or data of images) by data of otherprinting element, or adds the data of the printing element. In thisinstance, the template terminal 5 sets the attribute, for example,whether or not color printing is performed for each data of the printingelements, as necessary.

If the content of the change or addition of the attribute which isperformed on the whole page of the first template being processed isdetermined (step S54), the template terminal 5 transmits a templatepreservation command for making the printer 3 to preserve a new templatecontaining the above-described attribute (step S55). In step S54, thetemplate terminal 5 newly adds a background color of the whole page asthe attribute which is set by the command constituting the firsttemplate. Also, the template terminal 5 transmits the data (containingthe command) designating the attribute which is newly designated to thecommand constituting the first template to the printer 3 together withthe template conversion command. In step S55, the template terminal 5may transmit it together with the processed first template which issubjected to the process of designating the attribute. In the case ofediting or exchanging the data of the printing element, the templateterminal 5 transmits it together with the data of the processed printingelement.

The template conversion processing portion 31 of the printer 3 receivesthe template conversion command transmitted from the template terminal 5(step S64). The template conversion processing portion 31 creates andpreserves the second template by the command defined by the secondcommand scheme, based on the data transmitted together with templatepreservation command from the template terminal 5 (step S65).Specifically, the template conversion processing portion 31 creates thesecond template which describes the printing form using the command ofthe second command scheme, the printing form being reflected by theattribute designating the background color of the whole page added orchanged by the process of the template terminal 5 to or from theprinting form of the first template which is processed by the process ofthe template terminal 5. The template conversion processing portion 31denotes the created second template by the same name as the firsttemplate processed by the template terminal 5, and stores it in thesecond template storage portion 35. Accordingly, it becomes clear thatthe second template created by the template conversion processingportion 31 in step S65 is the template to be used instead of the firsttemplate processed by the template terminal 5.

Now, the first and second templates in a corresponding relation and anexample of printing images based on these templates will be described.

FIG. 5 is an explanatory diagram illustrating one example of the firsttemplate T2 and the second template T3 in the corresponding relation, inwhich FIG. 5A schematically shows the configuration of the firsttemplate T12 and the printing image G12 based on the first template T12,and FIG. 5B schematically shows the configuration of the second templateT13 and the printing image G13 based on the second template T13.

The first template T12 is composed of a command of the monochromeprinting. The first template T12 does not contain the data designating acolor (background color) of a background 51 of a label 50 which is anobject to be printed. The first template T12 is a template used when thelabel is printed by the printer 6, and the background 151 is white, thatis, the background should not be printed, since the printer 6 does notperform the color printing.

The first template T12 is data designating the printing form of thelabel 150, and contains data 140 a and 140 b of a character input areawhich is disposed in the label 150 and is inputted by the character, andimage attribute designating data 141 designating the printing form ofthe image to be printed on the label 150.

The character input area is a region in which the character dataoutputted from the host computer 2 together with the command of theprinting instruction is inserted. In this embodiment, a character string“HAPPY” and a character string “Summer Festival” are output from thehost computer 2, and these character strings are input in each characterinput area. As a result, as illustrated in the printing image G12 ofFIG. 15A, a character string y1 composed of characters “HAPPY” and acharacter string y2 composed of characters “Summer Festival” areprinted.

Data 140 a and 140 b of the character input area contained in the firsttemplate T12 contain a command and data designating a size, a position,and a font of the character. The character string y1 is printed on thelabel 150 in the printing form designated by the data 140 a of thecharacter input area, and the character string y2 is printed on thelabel 150 in the printing form designated by the data 140 b of thecharacter input area.

The image attribute designating data 141 contains data designating theimage to be printed on the label 150. The image is selected from theimages stored in the first template storage portion 34 together with thefirst template T12. The data designating the image is a file name of theimage data, for example. As illustrated in the printing image G12 ofFIG. 15A, the image x5 designated by the image attribute designatingdata 141 is printed on the label 150 to form the foreground.

The second template T13 illustrated in FIG. 15B is that data 142 of thebackground color is added to the data of the corresponding firsttemplate T12. The data 142 of the background color is data designatingthe background color for every page of the label 150 which is a printingunit. The data 140 a and 140 b of the character input area of the secondtemplate T13 may contain data designating colors of the characterstrings y1 and y2 to be printed, and data designating a background colorinside the area.

In the printing image G13 based on the second template T13, thebackground is colorized by the color designated by the data 142 of thebackground color. Further, in the printing image G13, the characterstrings y1 and y2 and the image x5 are printed in the printing formdesignated by the data 140 a and 140 b of the character input area andthe image attribute designating data 141, as well as the printing imageG12.

As the template terminal 5 converts the first template T12 used by theprinter 6 into the second template T13 described by the command of thesecond command scheme which can be executed by the printer 3, and thenpreserves it in the printer 3, the printer 3 can perform the printingusing the function of the color printing or the like, which cannot beexecuted by the printer 6, thereby colorizing the background color onthe whole page of the label 150 which is the printing unit.

FIG. 16 is an explanatory diagram illustrating the operation of theprinting process, and schematically shows the flow of the data in theprinting system 1. Further, FIG. 7 is an explanatory diagramillustrating a sequence of the printing process, in which FIG. 17A showsthe operation of the host computer 2, and FIG. 17B shows the operationof the printing control portion 32 of the printer 3.

The printing process will now be described with reference to FIGS. 16and 17.

In the printing process, the host computer 2 and the printer 3 transmitand receive the data to and from each other. In a case where the hostcomputer 2 and the printer 3 are connected one-on-one via acommunication line, such as USB or RS-232C, the printing process isexecuted via the communication line.

As the host computer 2 executes the application program 21 by themanipulation of the user or the operation of the preset program, theprinting process starts. If the application program 21 creates theprinting data of the label and instructs the printing execution, theprinting command contained the data designating the first template basedon the first command scheme is created and transmitted to the printer 3by the device driver 23 (step S71).

The printing control portion 32 of the printer 3 receives the printingcommand transmitted from the host computer 2 (step S81). The printingcontrol portion 32 refers to the data of the second template stored inthe second template storage portion 35 (step S82), and verifies whetheror not the second template storage portion 35 is stored with the secondtemplate corresponding to the first template designated by the printingcommand (step S83). That is, the printing control portion 32 searcheswhether the second template having the same name as the templatecontained in the printing command is in the first storage portion 35.

If the concerned second template is not in the second template storageportion 35 (NO in step S83), the printing control portion 32 reads thedesignated first template from the first template storage portion 34(step S84), and proceeds to step S46. If there is no concerned firsttemplate in the first template storage portion 34, the printing controlportion 32 may read the basic template from the basic template storageportion 36. Further, if it is verified that the concerned secondtemplate is in the second template storage portion 35 (YES in step S83),the printing control portion 32 reads the second template from thesecond template storage portion 34 (step S85), and proceeds to step S86.

In step S86, the printing control portion 32 creates the printing dataaccording to the read template. For example, if the first templatedesignated in the printing command is denoted by the name of “Summer”,the template having the same template name “Summer” is read from thesecond template storage portion 35, and the printing data is created.The read second template is to designate the background color of thewhole page which is the printing unit, on the label 150 which is theobject to be printed in the first template.

In steps S82 to S86, the printing control portion 32 converts thecommand of the first command scheme which is the command scheme of theprinter 6 into the command of the second command scheme which is thecommand scheme of the printer 11, and operates as an emulator forcontrolling the recording of the printer 11.

Subsequently, the printing control portion 32 controls the printingexecution unit 39 to execute the printing of the label 150 based on theprinting form designated by the second template (step S87).

As described above, if the printing command designating the firsttemplate is input, the printer 3 performs the printing based on thesecond template corresponding to the first template. That is, at thetime of printing, the printer 3 substitutes the first templatedesignated in the printing command for the printer 3 by the secondtemplate T13, and then performs the printing. Since the second templatecontains the information designating the attribute of the backgroundcolor of the whole page, the printer 3 can perform the printing in aprinting form different from the printing form based on the firsttemplate. For this reason, as the printer 6 is substituted by theprinter 3, it is possible to designate the background color of the label150, without changing the printing command to be output from the hostcomputer 2, thereby widening the range of the output representation ofthe label 150.

Further, if there is no second template corresponding to the firsttemplate designated by the host computer 2, the printer 3 takes thedesignated first template for the recording, thereby implementing theprinting even with no the second template corresponding to thedesignated first template. Therefore, it does not need to prepare thesecond template corresponding to all the first templates. For thisreason, the recording form can be changed so that the second template isused for only a portion of the first template. Therefore, limitation onthe change of the printing form is alleviated, and thus the printingform can be easily changed.

Although one example of the first and second templates has beendescribed with reference to FIGS. 15A and 15B in the above description,the present disclosure is not limited thereto. Another example of thefirst templates and an example of a second template corresponding toeach first template will be described with reference to FIGS. 18 and 19.

FIG. 18A is a view illustrating another example of the first templateand the second template, in which FIG. 18A shows a first template T14and a printing image G14 based on the first template T14, and FIG. 18Bshows a second template T15 and a printing image G15 based on the secondtemplate T15.

The first template T14 is composed of a command of gray scale printing,and is denoted by a name “Fragile”.

The first template T14 contains data 140 c and 140 d of input areasdesignating the printing form of the character input area provided inthe label 150, and data (not illustrated) designating the printing formof the frame to be printed on an edge of the label 150. The data 140 cand 140 d of the input area contain data designating a size, a position,and a font of the characters inputted in the character input area, and acommand and data designating printing density of the characters. In thisinstance, the characters inputted in the input areas are charactersoutputted from the host computer 2 together with the printinginstruction, as described above. In the example of FIG. 18A, thecharacters are composed of “Fragile” (character string y3) and “↑ UP ↑”(character string y4). In the printing image G14, the character stringsy3 and y4 are printed on the label 150 in the gray scale according tothe data 140 c and 140 d of the input area.

The second template T15 is that the first template T14 is added by thebackground image designating data 143 designating the printing form of abackground image x6 constituting the background of the label 150. Thesecond template T15 is denoted by the same name as the first templateT14, and is stored in the second template storage unit 35.

The background image designating data 143 is data designating thebackground image x6 to be printed as the background of the label 150.For example, if the second template storage portion 35 is previouslystored with data of the plurality of images which can be used as thebackground image, the background image designating data 143 is data(e.g., file name) designating one image data from a group of these imagedata. In the example of FIG. 18B, the background image designating data143 contains a file name “Image1” of the image data to be used as thebackground image x6, and thus the background image x6 is designated asthe background image. In the printing image G15 of FIG. 18B, thebackground image x6 designated by the background image designating data143 is disposed as the background of the label 150. The background imagea6 is a color image.

If the printing command designating the first template T14 is outputtedfrom the host computer 2, the printer 3 performs the printing based onthe second template T15 corresponding to the first template T14.Accordingly, it is possible to print the colorized background image x6as the background of the page of the label 150, thereby widening therange of the output representation of the label 150.

FIGS. 19A and 19B are views illustrating another example of the firsttemplate and the second template, in which FIG. 19A shows a firsttemplate T6 and a printing image G6 based on the first template T6, andFIG. 19B shows a second template T17 and a printing image G17 based onthe second template T17.

The first template T16 of FIG. 19A is composed of a command of grayscale printing. The first template T16 contains data 140 e and 140 f ofinput areas designating the printing form of the character input area inthe label 150 as the data designating the printing form, and imageattribute designating data 144 designating the printing form of theimage to be printed on the label 150. The data 140 c and 140 d of theinput area contain data designating a size, a position, and a font ofthe characters, like the data 140 b and 140 c of the input area. In theexample of FIG. 19A, the characters to be input in the character inputarea are “Fragile” (character string y3) and “↑ UP ↑” (character stringc4) outputted from the host computer 2.

The image attribute designating data 144 is data designating an image x8to be printed on the label 150. For example, if the storage portion 33is previously stored with data of the plurality of images which can beused as the image for the label, the image attribute designating data144 is data (e.g., file name) designating one image data from a group ofthese image data.

The second template T17 is that the first template T16 is newly added bya foreground attribute designating data 145 designating the printingcolor of the printing element, such as an image x8 and characters y3 andy4 which constitute the foreground. In other words, the foregroundattribute designating data 145 is data designating the foreground colorof the label 150 in a lump. The foreground attribute designating data145 may be data designating one color in the whole page, or datadesignating the plurality of different colors for every portion. If thesecond template T17 is used, it is possible to print the characters y3and y4 or the image x8 in color, like the printing image G17 of FIG.19B.

Preferred embodiments of the disclosure have been described above, butthe present disclosure is not limited thereto. For example, although theabove embodiment has been explained in which the second template storedin the second template storage portion 35 provided in the printer 3 isdenoted by the same name as the corresponding first template to make thefirst template correspond to the second template, the present disclosureis not limited thereto. The information defining the correspondencebetween the first template and the second template may be stored in thestorage unit 33 or other storage units. In this instance, the printingcontrol portion 32 selects the second template corresponding to thefirst template designated by the printing command sent from the hostcomputer 2 on the basis of the information, and it is not necessary tomake the names of the templates same.

Further, in the above embodiments, for example, it has been describedthe configuration of taking the first template from the first templatestorage portion 34 to create the printing data if the second templatecorresponding to the first template in the printing command is notstored in the second template storage portion 35. It is possible tocreate the printing data by determining whether the first template orthe second template is used by use of the contents of the data senttogether with the printing command, or parameters of the commandcontained in the printing command, and then selectively using the firsttemplate and the second template.

Although the above embodiments have been described using the case wherethe label is printed by the printer 3, the present disclosure can beapplied to a case where the record is recorded by using other printingmediums or recording mediums.

In addition, the function blocks shown in each block diagram areachieved by cooperation between hardware and software, but the specificsof the hardware and software configurations can be determined asdesired, and other detailed aspects of the configuration can be changedas desired. The printer 3 is not specifically limited to a specificconfiguration if it can perform the printing, and can be applied tovarious devices, such as a SIDM type printer, an inkjet type printer, athermal printer, or a laser printer. Of course, the present disclosureis not limited to stand-alone devices, and the disclosure can obviouslybe applied to devices that are incorporated into another device such asan ATM (automated teller machine) or cash dispenser. The data processingdevice of the present disclosure is not limited to the printer 3including the printing control portion 32 as the processing unit, andcan be applied to a device which creates the printing data using anapparatus installed separately from the printer 3.

EXPLANATION OF REFERENCE SIGNS

-   1 printing system-   2 host computer-   3 printer (recording device)-   34 first template storage portion (first storage unit)-   32 printing control portion (recording control unit)-   35 second template storage portion (second storage unit)-   39 printing execution unit (recording unit)-   T2, T6, T8, T12, T14, T16 first template-   T3, T4, T5, T7, T9, T13, T15, T17 second template

1.-20. (canceled)
 21. A printing device comprising: a printing mechanismconfigured to perform a printing operation; a storage configured tostore a first template corresponding to first command scheme and asecond template corresponding to second command scheme; and a controllerconfigured to take the second template from the storage and get theprinting mechanism to perform the printing operation by using the secondtemplate when a printing instruction containing data designating thefirst template is input.
 22. The printing device according to claim 21,wherein the first template designates the printing form of data of aprinting element corresponding to another printing device, and thesecond template is made by changing data of the printing element in thefirst template or by adding data of the printing element to the firsttemplate corresponding to the printing device.
 23. The printing deviceaccording to claim 21, wherein when the printing instruction containingthe data designating the first template is input and the second templatecorresponding to the designated first template is not stored in thestorage, the controller takes the first template and gets the printingmechanism to perform the printing operation by using the first template.24. The printing device according to claim 21, wherein the secondtemplate contains data designating the printing form of the data of theprinting element which is newly added to the first template.
 25. Theprinting device according to claim 22, wherein another printing deviceis a monochrome type and the printing device is a color type.
 26. Theprinting device according to claim 21, wherein the second templatecontains data designating a printing color of the printing element, asthe data designating the printing form of the data of the printingelement.
 27. The printing device according to claim 21, wherein thesecond template contains data designating at least one of a position anda size of the printing element in a printing region of a printingmedium, as the data designating the printing form of the data of theprinting element.
 28. The printing device according to claim 21, whereinthe first command scheme is a monochrome printing scheme, and the secondcommand scheme is a color printing scheme.
 29. The printing deviceaccording to claim 21, wherein the first template is data designating aprinting form of a page unit, and the second template is formed byadding data newly designating the printing form of the page to the firsttemplate.
 30. The printing device according to claim 29, wherein whenthe printing instruction containing the data designating the firsttemplate is input and the second template corresponding to thedesignated first template is not stored in the storage, the controllertakes the first template and gets the printing mechanism to perform theprinting operation by using the first template.
 31. The printing deviceaccording to claim 29, wherein the second template contains datadesignating a background color of the page, as the data newlydesignating the printing form of the page.
 32. The printing deviceaccording to claim 21, wherein the second command scheme emulates thefirst command scheme.
 33. The printing device according to claim 22,wherein the printing device emulates another printing device.
 34. Theprinting device according to claim 21, wherein the printing mechanismconfigured to print on a label, and the first template and the secondtemplate are corresponding to the label.
 35. A control method for aprinting device including: a printing mechanism configured to perform aprinting operation; a storage configured to store a first templatecorresponding to first command scheme and a second templatecorresponding to second command scheme; and a controller configured toget the printing mechanism to perform the printing operation, thecontrol method comprising: taking the second template from the storageto get the printing mechanism to perform the printing operation by usingthe second template when a printing instruction containing datadesignating the first template is input.
 36. The control methodaccording to claim 35, wherein the first template designates theprinting form of data of a printing element corresponding to anotherprinting device, and the second template is made by changing data of theprinting element in the first template or by adding data of the printingelement to the first template corresponding to the printing device. 37.The control method according to claim 35, wherein the first template isdata designating a printing form of a page unit, and the second templateis formed by adding data newly designating the printing form of the pageto the first template.
 38. The control method according to claim 35further comprising, when the printing instruction containing the datadesignating the first template is input and the second templatecorresponding to the designated first template is not stored in thestorage unit, taking the first template and getting the printingmechanism to perform the printing operation by using the first template.39. The control method according to claim 36 further comprising, anotherprinting device is a monochrome type and the printing device is a colortype.
 40. The control method according to claim 35 further comprising,wherein the first command scheme is a monochrome printing scheme, andthe second command scheme is a color printing scheme